home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / windows / editprog / we_30x.arj / TOOLBAR.WB_ < prev    next >
Text File  |  1994-05-20  |  1KB  |  40 lines

  1. ;  TOOLBAR.WBT
  2. ;
  3. ;
  4. ; This sample demonstrates customizing the WinEdit toolbar
  5. ; First, we'll remove the five programming buttons. Then
  6. ; move the cut, copy, and paste buttons to the end of the toolbar.
  7. ; Finally, we'll add a button which calls some WIL script contained
  8. ; in WWWEDIT.DLL
  9. ;
  10. ; wDelButton takes two parameters, the 0-based position of the button
  11. ; on the toolbar, and the command tied to that button
  12. ;
  13. ; Note that as we delete buttons in a group, the remaining buttons
  14. ; move up in position, so we delete position 13 each time.
  15.  
  16. ; Uncomment this DEBUG line if you want to step through the processing
  17. ;      DEBUG(1)
  18.         wDelButton(13,@wRunCompile)
  19.         wDelButton(13,@wRunMake)
  20.         wDelButton(13,@wRunRebuild)
  21.         wDelButton(13,@wRunDebug)
  22.         wDelButton(13,@wRunExecute)
  23.  
  24. ; To move the editing buttons, we will first remove them, then
  25. ; add them back on in their new position
  26.  
  27.         wDelButton(7,@wEdCut)
  28.         wDelButton(7,@wEdCopy)
  29.         wDelButton(7,@wEdPaste)
  30.         wAddButton(@CUTICON,@wEdCut,13)
  31.         wAddButton(@COPYICON,@wEdCopy,14)
  32.         wAddButton(@PASTEICON,@wEdPaste,15)
  33.         
  34. ; Finally, let's add a button which calls some custom code in WWWEDIT.DLL
  35. ; The predefined identifier @wCall1 will generate a call statement of
  36. ; 'Call("WWWEDIT.DLL","BUTTONMACRO 1")'. See the WWWEDIT.DLL file for
  37. ; an example.
  38.         wAddButton(@MAKEICON,@wCall1,17)
  39.